import request from '@/utils/request'

/**
 * 会员列表
 */
export function membersList(query) {
  return request({
    url: '/members/list',
    method: 'get',
    params: query
  })
}

/**
 * 查看我的下级
 * @param {*} data
 */
export function subList(query) {
  return request({
    url: '/members/subList',
    method: 'get',
    params: query
  })
}

/**
 * 禁用启用用户账号
 * @param {*} data
 */
export function membersStatus(query) {
  return request({
    url: '/members/membersStatus',
    method: 'get',
    params: query
  })
}


/**
 * 禁用启用用户账号
 * @param {*} data
 */
export function memberWalletList(query) {
  return request({
    url: '/members/memberWalletList',
    method: 'get',
    params: query
  })
}

export function financingList(query) {
  return request({
    url: '/members/financingList',
    method: 'get',
    params: query
  })
}

export function financingProfit(query) {
  return request({
    url: '/members/financingProfit',
    method: 'get',
    params: query
  })
}

export function financingMold(query) {
  return request({
    url: '/members/financingMold',
    method: 'get',
    params: query
  })
}

export function authList(query) {
  return request({
    url: '/members/authList',
    method: 'get',
    params: query
  })
}

export function authEdit(query) {
  return request({
    url: '/members/authEdit',
    method: 'get',
    params: query
  })
}

export function paymentList(query) {
  return request({
    url: '/members/paymentList',
    method: 'get',
    params: query
  })
}
export function paymentEdit(query) {
  return request({
    url: '/members/paymentEdit',
    method: 'get',
    params: query
  })
}

export function moneyEdit(data) {
  return request({
    url: '/members/moneyEdit',
    method: 'post',
    data
  })
}

export function profitEdit(data) {
  return request({
    url: '/members/profitEdit',
    method: 'post',
    data
  })
}

export function memberRoleList(query) {
  return request({
    url: '/members/memberRoleList',
    method: 'get',
    params: query
  })
}
export function memberRoleEdit(data) {
  return request({
    url: '/members/memberRoleEdit',
    method: 'post',
    data
  })
}
export function memberEdit(data) {
  return request({
    url: '/members/memberEdit',
    method: 'post',
    data
  })
}
